<%@ page contentType="text/html;charset=UTF-8"%>
<%@ page import="org.springside.modules.security.springsecurity.SpringSecurityUtils" %>
<%@ include file="/common/taglibs.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>用户管理</title>
	<%@ include file="/common/meta.jsp"%>
	<link href="${ctx}/css/default.css" type="text/css" rel="stylesheet" />
	<link href="${ctx}/css/extremetable/extremecomponents.css" type="text/css" rel="stylesheet" />
	<script src="${ctx}/js/jquery.js" type="text/javascript"></script>
	<script src="${ctx}/js/table.js" type="text/javascript"></script>
	<script src="${ctx}/js/extremecomponents.js" type="javascript" ></script>
</head>

<body>
<div id="message"><s:actionmessage theme="mytheme"/></div>
<div id="ecTable">
	<ec:table items="page.result" var="user"
		action="${ctx}/security/user!list.action" width="100%" filterable="true"
		retrieveRowsCallback="limit" rowsDisplayed="10" sortable="true">
		<%-- 
		<ec:exportXls fileName="presidents.xls" tooltip="导出Excel"/>
		<ec:exportCsv fileName="presidents.csv" tooltip="Export CSV" delimiter="|"/>
		--%>
		<ec:row>
		<ec:column property="null" width="5%" cell="rowCount" sortable="false"  style="text-align: center" filterable="true" title="序号" />
		<ec:column property="loginName" width="15%" title="登录名" />
		<ec:column property="telNumber" width="20%" style="text-align: left;" title="联系电话" />
		<ec:column property="email" width="25%" style="text-align: left;" title="电子邮件" />
		<ec:column property="roleNames" width="15%" title="拥有角色" />
		<ec:column property="" width="20%" alias="操作" style="text-align:center;" viewsAllowed="html">
			<security:authorize ifAnyGranted="A_MODIFY_USER">
			<a href="user!input.action?id=${user.id }">修改</a>
			<a href="user!delete.action?id=${user.id }">删除</a>
			<a href="user!assignRole.action?id=${user.id }">授权</a>
			</security:authorize>
		</ec:column>
		</ec:row>
	</ec:table>
</div>
</body>
</html>
